package com.itheima.service.store;

import com.itheima.domain.store.QuestionItem;

import java.util.List;

public interface QuestionItemService {
    List<QuestionItem> findAll()throws Exception;

    QuestionItem findById(String id)throws Exception;

    void save(QuestionItem questionItem)throws Exception;

    void update(QuestionItem questionItem)throws Exception;

    void deleteById(String... ids)throws Exception;

    /**
     * 根据题干的ID，查询对应的所有的选项
     * @param questionId
     * @return
     * @throws Exception
     */
    List<QuestionItem> findByQuestionId(String questionId)throws Exception;

    void clean()throws Exception;
}
